/**
 * 2010(c) Copyright Oceansoft Information System Co.,LTD. All rights reserved.
 * <p>
 * Compile: JDK 1.6+
 * <p>
 * 版权所有(C)：江苏欧索软件有限公司
 * <p>
 * 公司名称：江苏欧索软件有限公司
 * <p>
 * 公司地址：中国苏州科技城青山路1号
 * <p>
 * 网址: http://www.oceansoft.com.cn
 * <p>
 * 版本: 苏州公安统一用户管理平台1.0
 * <p>
 * 作者: 090922(陈伟)
 * <p>
 * 文件名:SysUser.java
 * <p>
 * 类产生时间: 2012-5-23 下午4:18:25
 * <p>
 * 负责人: 090922(陈伟)
 * <p>
 * Email:javacspring@gmail.com
 * <p>
 * 所在组 : 苏州公安统一用户管理平台
 * <p>
 * 所在部门: 电信/国土——技术二部
 * <p>
 * <p>
 */
package com.oceansoft.core.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class SysUser implements Comparable<SysUser>,Serializable {
	// 主键
	private long dbId;
	// 姓名
	private String name;
	private String userId;
	// 部门编号
	private String deptId;
	/** 部门编号有效位,根据层次得到 */
	private String shortDeptId;
	// 警号
	private String policeNum;
	// 身份证号
	private String idCard;
	// 密码
	private String password;
	// 职务名称
	private String dutyName;
	// 是否启用
	private String activeFlag;
	// 生日
	private String birthday;
	// 联系电话
	private String tel;
	// 备注信息
	private String updateTime;
	// 职务编号
	private String dutyId;
	// 是否兼职
	private int parttime;
	// 兼职职务名称
	private String partTimedutyname;
	// 是否删除
	private String delflag;
	/** 部门名称 */
	private String deptName;
	private String remark;
	/** 新密码 */
	private String newPassword;
	/** 确认密码 */
	private String password_2;
	// 排序序号
	private Integer orderNum;
	// 排序序号
	private String dept2Name;
	/** 查询时候是否级联下级部门 0不 1 级联 */
	private String cascade;
	
	private String tel_mobile;
	private String photo;
	private String dutyLevel;
	private int deptManager;
	private int joinCheck;

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getTel_mobile() {
		return tel_mobile;
	}

	public void setTel_mobile(String tel_mobile) {
		this.tel_mobile = tel_mobile;
	}

	/**
	 * 应用系统编号
	 */
	private String appId;
	private String idsStr;
	private String namesStr;
	private String uip;
	private List<SysResource> sysResources;
	private Map<String, ArrayList<SysResource>> userResources;

	public String getDelflag() {
		return delflag;
	}

	public void setDelflag(String delflag) {
		this.delflag = delflag;
	}

	public String getPartTimedutyname() {
		return partTimedutyname;
	}

	public void setPartTimedutyname(String partTimedutyname) {
		this.partTimedutyname = partTimedutyname;
	}

	public int getParttime() {
		return parttime;
	}

	public String getCascade() {
		return cascade;
	}

	public void setCascade(String cascade) {
		this.cascade = cascade;
	}

	public void setParttime(int parttime) {
		this.parttime = parttime;
	}

	public SysUser() {
		super();
		this.cascade = "0";
	}

	public SysUser(String policeNum, String name, String deptName) {
		super();
		this.name = name;
		this.policeNum = policeNum;
		this.deptName = deptName;
	}

	public SysUser(String name, String policeNum, String dutyName, String birthday) {
		super();
		this.name = name;
		this.policeNum = policeNum;
		this.dutyName = dutyName;
		this.birthday = birthday;
	}

	public long getDbId() {
		return dbId;
	}

	public void setDbId(long dbId) {
		this.dbId = dbId;
	}
	
	public int getDbid() {
		return (int)dbId;
	}

	public void setDbid(int dbid) {
		this.dbId = dbid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getPoliceNum() {
		return policeNum;
	}

	public void setPoliceNum(String policeNum) {
		this.policeNum = policeNum;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDutyName() {
		return dutyName;
	}

	public void setDutyName(String dutyName) {
		this.dutyName = dutyName;
	}

	public String getActiveFlag() {
		return activeFlag;
	}

	public void setActiveFlag(String activeFlag) {
		this.activeFlag = activeFlag;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getDutyId() {
		return dutyId;
	}

	public void setDutyId(String dutyId) {
		this.dutyId = dutyId;
	}

	public String getPassword_2() {
		return password_2;
	}

	public void setPassword_2(String password_2) {
		this.password_2 = password_2;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getIdsStr() {
		return idsStr;
	}

	public void setIdsStr(String idsStr) {
		this.idsStr = idsStr;
	}

	public String getNamesStr() {
		return namesStr;
	}

	public void setNamesStr(String namesStr) {
		this.namesStr = namesStr;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public String getUip() {
		return uip;
	}

	public void setUip(String uip) {
		this.uip = uip;
	}

	public List<SysResource> getSysResources() {
		return sysResources;
	}

	public void setSysResources(List<SysResource> sysResources) {
		this.sysResources = sysResources;
	}

	public Map<String, ArrayList<SysResource>> getUserResources() {
		return userResources;
	}

	public void setUserResources(Map<String, ArrayList<SysResource>> userResources) {
		this.userResources = userResources;
	}

	@Override
	public int compareTo(SysUser o) {
		return this.getPoliceNum().compareTo(o.getPoliceNum());
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getDept2Name() {
		return dept2Name;
	}

	public void setDept2Name(String dept2Name) {
		this.dept2Name = dept2Name;
	}

	public String getShortDeptId() {
		return shortDeptId;
	}

	public void setShortDeptId(String shortDeptId) {
		this.shortDeptId = shortDeptId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getDutyLevel() {
		return dutyLevel;
	}

	public void setDutyLevel(String dutyLevel) {
		this.dutyLevel = dutyLevel;
	}

	public int getDeptManager() {
		return deptManager;
	}

	public void setDeptManager(int deptManager) {
		this.deptManager = deptManager;
	}

	public int getJoinCheck() {
		return joinCheck;
	}

	public void setJoinCheck(int joinCheck) {
		this.joinCheck = joinCheck;
	}
}
